﻿using Elasticsearch.Net;
using Nest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ElasticSearch.BLL.Helper
{
    public class NESTHelper
    {
        public object client = new object();

        private NESTHelper()
        {
            var nodes = new Uri[]
            {
                new Uri("http://localhost:9200")
            };
            var pool = new StaticConnectionPool(nodes);
            var settings = new ConnectionSettings(pool);
            var client = new ElasticClient(settings);

        }

    }
}
